// import 'open-iconic/font/css/open-iconic-bootstrap.css'
import Vue from 'Vue'
import App from './App.vue'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
//导入路由报
import VueRouter from 'vue-router'
Vue.use(VueRouter)
//导入vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
//定义根路径
Vue.http.options.root = 'http://liulongbin.top:3005'
//设置json格式的提交参数
Vue.http.options.emulateJSON = true
//定义全局时间格式器
import moment from 'moment'
Vue.filter('dateFormat', function (dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
    return moment(dataStr).format(pattern)
})
// import { Header, Swipe, SwipeItem, Button ,Lazyload } from 'mint-ui';

import './lib/mui/js/mui.min.js'
// Vue.component(Header.name, Header);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(Button.name, Button);
// // 引入图片懒加载组件
// Vue.use(Lazyload)
import MintUI from 'mint-ui';
Vue.use(MintUI)
import 'mint-ui/lib/style.css'
import router from './router.js'

// 引入缩略图插件
import VuePreview from 'vue-preview'
Vue.use(VuePreview)

var vue = new Vue({
    el: '#app',
    render: c => c(App),
    router
})


